#include "SMPPBillingIdentification.hpp"

using namespace smpp::pdu;

BillingIdentification::BillingIdentification(const octetString &nValue):
TLV(TLVtags::TAG_BILLING_IDENTIFICATION,nValue.size()),_Value(nValue){}

BillingIdentification::BillingIdentification(
const BillingIdentification &nBillingIdentification):
TLV(nBillingIdentification),
_Value(nBillingIdentification.getValue()){}

bool BillingIdentification::operator ==(
	const BillingIdentification &nBillingIdentification) const{
	return (TLV::operator == (nBillingIdentification) && 
			_Value == nBillingIdentification.getValue());
}

bool BillingIdentification::operator !=(
	const BillingIdentification &nBillingIdentification) const{
	return !this->operator == (nBillingIdentification);
}

BillingIdentification &BillingIdentification::operator = (
	const BillingIdentification &nBillingIdentification){
	if(*this == nBillingIdentification)
		return *this;
	TLV::operator =(nBillingIdentification);
	_Value = nBillingIdentification.getValue();
	return *this;
}

void BillingIdentification::setValue(const octetString &nValue){
	_Value = nValue;
}

const octetString &BillingIdentification::getValue() const{
	return _Value;
}
